package com.xingkeduo.remote.feign;

import com.xingkeduo.dto.wxma.WxJsApiDto;
import com.xingkeduo.utils.ResponseUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "business-message")
public interface MessageFeignService {

    /**
     * js授权
     * @param mpId:
     * @param current_url:
     * @return : java.lang.String
     * @author : gaozifeng
     * @date : 2019/5/30 12:03
     */
    @PostMapping("/wecaht/jsapi/getTicket")
    ResponseUtils<WxJsApiDto> getTicket(@RequestParam("mpId") String mpId, @RequestParam("current_url") String current_url);

}
